package cn.youwan.market.utils;

public class Const {
	public final static String START_DOWNLOAD_ACTION = "cn.youwan.market.start.download.action"; // 开始下载
	public final static String DOWNLOADED_DOWNLOAD_ACTION = "cn.youwan.market.downloaded.download.action";// 完成下载
	public final static String PAUSE_DOWNLOAD_ACTION = "cn.youwan.market.pause.download.action"; // 暂停下载
	public final static String DELECT_DOWNLOAD_ACTION = "cn.youwan.market.delect.download.action"; // 删除下载
	public final static String DELECTAPK_DOWNLOAD_ACTION = "cn.youwan.market.delectapk.download.action"; // 删除未安装的apk包
	public final static String CONTIUE_DOWNLOAD_ACTION = "cn.youwan.market.contiue.download.action";// 继续下载（不需要这个action，继续下载就是重新开始下载）

	/** 未下载 */
	public static final int DOWNLOAD_STATE = 0;
	/** 下载中 */
	public static final int DOWNLOADING_STATE = 1;
	/** 下载完毕（安装状态） */
	public static final int OVER_DOWNLOAD_STATE = 2;
	/** 下载等待中 */
	public static final int DOWNLOADING_WAIT_STATE = 3;

	public static String Host = "";
	
	//TODO 暂定的链接
	public static final String DOWNLOAD = "/api/download";
	public static final String GetSearchHot = "/api/getHotWords";
	public static final String GetUpdateAppList = "/api/getNewApps";
/*	public static final String PromotionList = "/api/index";
	public static final String GameCompetitive = "/api/game";
	public static final String GameTop = "/api/topGame";
	public static final String GameClass = "/api/gameClass";
	public static final String GameClassApp = "/api/getGameByCategory";
	public static final String AppCompetitive = "/api/app";
	public static final String SoftTop = "/api/topApp";
	public static final String SoftClass = "/api/appClass";
	public static final String SoftClassApp = "/api/getAppByCategory";
	public static final String Search = "/api/search";
	public static final String AppDetail = "/api/appDetail";
	public static final String Specali = "/api/topic";
	public static final String reg = "/api/reg";
	public static final String login = "/api/login";
	public static final String Vertion = "/api/getNewVersion";
	public static final String Advice = "/api/addFeedback";
	public static final String Comment = "/api/comment";
	public static final String GetComment = "/api/getComment";
	public static final String DOWNLOAD = "/api/download";
	public static final String GetSearchHot = "/api/getHotWords";
	public static final String GetUpdateAppList = "/api/getNewApps";
	public static final String UpdateAccount = "/api/updateAccount";
	
	public static final String findPass = "/api/find_password.php";
	public static final String SearchHot = "/api/hot_word.php";
	public static final String GetpushMessage = "/api/get_push_info.php";*/

	/** 下载任务最大活动数 */
	public static final int MAX_TASK_COUNT = 3;

	// 数据及图片缓存
	public static final String ImageCache = "/sdcard/youwanmarket/mapcache/";
	public static final String DataCache = "/sdcard/youwanmarket/cache/";
	public static final String APKS = "/sdcard/youwanmarket/apks/";

	// 下载文件数据库信息
	public static final String DBNAME = "apkmanger.db";
	// state 0为未下载完 1为已下载完未安装
	public static final String APKSQL = "CREATE TABLE IF NOT EXISTS apks(_id INTEGER PRIMARY KEY autoincrement,company VARCHAR,name VARCHAR,rate VARCHAR,icon VARCHAR,pkg VARCHAR,url VARCHAR,file_size VARCHAR,state INTEGER,appid VARCHAR)";

	// 下载是否需要提示用户
	public static boolean DownLoadTip;
	
	public static final boolean SYSO_FLAG = true;

}
